package com.webside.banner.model;

import java.io.Serializable;

public class BannerEntity implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;

    private String imgUrl;

    private String linkUrl;

    private Integer sort;
    
    private String target;
   
    private String bName;
    
    

    public String getbName() {
    	if(this.target.startsWith("BANNER")){
			return "轮播图";
		}else if(this.target.startsWith("PARTNER")){
			return "合作伙伴";
		}
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	} 
 
	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}